package com.tust.app.domain;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.springframework.stereotype.Component;

//@Setter
//@Getter
//@ToString
//@NoArgsConstructor
public class News {
    private Integer id;
    private String article;
    private String title;
    private String time;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getArticle() {
        return article;
    }

    public void setArticle(String article) {
        this.article = article;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }


    public String toString() {
        return "News{" +
                "id=" + id +
                ", article='" + article + '\'' +
                ", title='" + title + '\'' +
                ", time='" + time + '\'' +
                '}';
    }


}
